package com.wg.io.sqlSession;

import java.sql.SQLException;
import java.util.List;

/**
 * @author Mrwg
 * @date 2020/3/26 13:08
 * @description
 */
public interface SqlSession {
    public <E> List<E> selectList(String statementId, Object... param) throws Exception;

    public <T> T selectOne(String statementId, Object... params) throws  Exception;

    public void close() throws SQLException;

    //add  updatedel
    int insertSaveOrUpdate(String statementId, Object... params) throws Exception;

    public <T> T getMapper(Class<?> mapperClass);
}
